home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / MoreFiles 1.2.1 / MoreFiles Reference 1.2.1 / MoreFiles Reference 1.2.1.rsrc / WFMT_235_a158 < prev    next >
Unknown  |  1994-08-10  |  2.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
100% TrID TTComp archive compressed (bin-2K) default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 25 00 00 02 85 00 00 | 00 25 61 31 35 38 00 00 |.%......|.%a158..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 0b 47 65 74 44 69 | 72 49 74 65 6d 73 00 00 |...GetDi|rItems..|
|00000060| 06 00 00 00 00 01 14 00 | 00 02 86 00 00 01 14 00 |........|........|
|00000070| 00 00 14 03 c1 00 28 05 | 7e 00 ff 00 00 00 00 7f |......(.|~.......|
|00000080| ff 0f a8 00 00 00 00 4e | 1c 00 00 00 09 00 00 00 |.......N|........|
|00000090| 04 00 04 ff fc ff fa 00 | 04 00 04 ff fc ff fc 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 83 | 00 0b 40 10 6b 53 63 72 |........|..@.kScr|
|000000b0| 65 65 6e 41 50 49 2f 31 | 39 39 39 36 00 06 47 65 |eenAPI/1|9996..Ge|
|000000c0| 6e 65 76 61 00 00 ba 70 | 61 73 63 61 6c 20 4f 53 |neva...p|ascal OS|
|000000d0| 45 72 72 20 47 65 74 44 | 69 72 49 74 65 6d 73 28 |Err GetD|irItems(|
|000000e0| 73 68 6f 72 74 20 76 52 | 65 66 4e 75 6d 2c 20 6c |short vR|efNum, l|
|000000f0| 6f 6e 67 20 64 69 72 49 | 44 2c 20 53 74 72 69 6e |ong dirI|D, Strin|
|00000100| 67 50 74 72 20 6e 61 6d | 65 2c 20 42 6f 6f 6c 65 |gPtr nam|e, Boole|
|00000110| 61 6e 20 67 65 74 46 69 | 6c 65 73 2c 20 42 6f 6f |an getFi|les, Boo|
|00000120| 6c 65 61 6e 20 67 65 74 | 44 69 72 65 63 74 6f 72 |lean get|Director|
|00000130| 69 65 73 2c 20 46 53 53 | 70 65 63 50 74 72 20 69 |ies, FSS|pecPtr i|
|00000140| 74 65 6d 73 2c 20 73 68 | 6f 72 74 20 72 65 71 49 |tems, sh|ort reqI|
|00000150| 74 65 6d 43 6f 75 6e 74 | 2c 20 73 68 6f 72 74 20 |temCount|, short |
|00000160| 2a 61 63 74 49 74 65 6d | 43 6f 75 6e 74 2c 20 73 |*actItem|Count, s|
|00000170| 68 6f 72 74 20 2a 69 74 | 65 6d 49 6e 64 65 78 29 |hort *it|emIndex)|
|00000180| 3b 00 00 00 06 00 00 00 | 00 00 84 00 00 02 87 00 |;.......|........|
|00000190| 00 00 84 00 00 00 00 03 | c1 00 14 05 7e 00 ff 00 |........|....~...|
|000001a0| 00 00 00 7f ff 0f a8 00 | 00 00 00 4e 1d 00 00 00 |........|...N....|
|000001b0| 09 00 00 00 04 00 04 ff | fc ff fa 00 04 00 04 ff |........|........|
|000001c0| fc ff fc 00 00 00 00 00 | 00 00 00 83 00 0b 40 14 |........|......@.|
|000001d0| 6b 53 63 72 65 65 6e 4f | 6e 65 4c 69 6e 65 2f 31 |kScreenO|neLine/1|
|000001e0| 39 39 39 37 00 06 47 65 | 6e 65 76 61 00 00 26 52 |9997..Ge|neva..&R|
|000001f0| 65 74 75 72 6e 20 61 20 | 6c 69 73 74 20 6f 66 20 |eturn a |list of |
|00000200| 69 74 65 6d 73 20 69 6e | 20 61 20 64 69 72 65 63 |items in| a direc|
|00000210| 74 6f 72 79 2e 00 00 00 | 06 00 00 00 00 00 44 00 |tory....|......D.|
|00000220| 00 02 88 00 00 00 44 00 | 00 00 00 02 6b 04 40 02 |......D.|....k.@.|
|00000230| 6c 01 00 00 00 00 00 00 | 01 0f f1 00 00 00 00 00 |l.......|........|
|00000240| 00 00 00 00 0c 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 06 00 00 00 |........|........|
|00000270| 00 00 7c 00 00 02 89 00 | 00 00 7c 00 00 00 00 02 |..|.....|..|.....|
|00000280| 6b 02 28 03 c1 00 ff 00 | 00 00 00 7f ff 0f a8 00 |k.(.....|........|
|00000290| 00 00 00 4e 16 00 00 00 | 09 00 00 00 04 00 04 ff |...N....|........|
|000002a0| fc ff fa 00 04 00 04 ff | fc ff fc 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 83 00 0b 40 0b | 6c 69 6e 6b 73 2f 31 39 |......@.|links/19|
|000002c0| 39 39 30 00 06 4d 6f 6e | 61 63 6f 00 00 11 61 31 |990..Mon|aco...a1|
|000002d0| 35 38 2c 47 65 74 44 69 | 72 49 74 65 6d 73 0d 00 |58,GetDi|rItems..|
|000002e0| 16 00 01 00 00 00 00 00 | 10 00 0c 00 01 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 06 00 00 00 00 05 cf 00 |........|........|
|00000300| 00 02 8a 00 00 05 cf 00 | 00 00 00 00 00 75 30 02 |........|.....u0.|
|00000310| 6b 01 ff 00 00 00 00 7f | ff 0f a8 00 00 00 00 4e |k.......|.......N|
|00000320| 1f 00 00 00 09 00 00 00 | 04 00 04 ff fc ff fa 00 |........|........|
|00000330| 04 00 04 ff fc ff fc 00 | 00 00 00 00 00 00 00 83 |........|........|
|00000340| 00 0b 40 0a 62 6f 64 79 | 2f 31 39 39 39 39 00 06 |..@.body|/19999..|
|00000350| 4d 6f 6e 61 63 6f 00 05 | 65 70 61 73 63 61 6c 20 |Monaco..|epascal |
|00000360| 4f 53 45 72 72 20 47 65 | 74 44 69 72 49 74 65 6d |OSErr Ge|tDirItem|
|00000370| 73 28 73 68 6f 72 74 20 | 76 52 65 66 4e 75 6d 2c |s(short |vRefNum,|
|00000380| 20 6c 6f 6e 67 20 64 69 | 72 49 44 2c 20 53 74 72 | long di|rID, Str|
|00000390| 69 6e 67 50 74 72 20 6e | 61 6d 65 2c 20 42 6f 6f |ingPtr n|ame, Boo|
|000003a0| 6c 65 61 6e 20 67 65 74 | 46 69 6c 65 73 2c 20 42 |lean get|Files, B|
|000003b0| 6f 6f 6c 65 61 6e 20 67 | 65 74 44 69 72 65 63 74 |oolean g|etDirect|
|000003c0| 6f 72 69 65 73 2c 20 46 | 53 53 70 65 63 50 74 72 |ories, F|SSpecPtr|
|000003d0| 20 69 74 65 6d 73 2c 20 | 73 68 6f 72 74 20 72 65 | items, |short re|
|000003e0| 71 49 74 65 6d 43 6f 75 | 6e 74 2c 20 73 68 6f 72 |qItemCou|nt, shor|
|000003f0| 74 20 2a 61 63 74 49 74 | 65 6d 43 6f 75 6e 74 2c |t *actIt|emCount,|
|00000400| 20 73 68 6f 72 74 20 2a | 69 74 65 6d 49 6e 64 65 | short *|itemInde|
|00000410| 78 29 3b 0d 0d 54 68 65 | 20 47 65 74 44 69 72 49 |x);..The| GetDirI|
|00000420| 74 65 6d 73 20 66 75 6e | 63 74 69 6f 6e 20 72 65 |tems fun|ction re|
|00000430| 74 75 72 6e 73 20 61 20 | 6c 69 73 74 20 6f 66 20 |turns a |list of |
|00000440| 69 74 65 6d 73 20 69 6e | 20 74 68 65 20 73 70 65 |items in| the spe|
|00000450| 63 69 66 69 65 64 0d 64 | 69 72 65 63 74 6f 72 79 |cified.d|irectory|
|00000460| 20 69 6e 20 61 6e 20 61 | 72 72 61 79 20 6f 66 20 | in an a|rray of |
|00000470| 46 53 53 70 65 63 20 72 | 65 63 6f 72 64 73 2e 20 |FSSpec r|ecords. |
|00000480| 46 69 6c 65 2c 20 73 75 | 62 64 69 72 65 63 74 6f |File, su|bdirecto|
|00000490| 72 69 65 73 2c 20 6f 72 | 0d 62 6f 74 68 20 63 61 |ries, or|.both ca|
|000004a0| 6e 20 62 65 20 72 65 74 | 75 72 6e 65 64 20 69 6e |n be ret|urned in|
|000004b0| 20 74 68 65 20 6c 69 73 | 74 2e 0d 0d 76 52 65 66 | the lis|t...vRef|
|000004c0| 4e 75 6d 20 20 20 20 20 | 20 20 20 20 69 6e 70 75 |Num | inpu|
|000004d0| 74 3a 20 20 56 6f 6c 75 | 6d 65 20 73 70 65 63 69 |t: Volu|me speci|
|000004e0| 66 69 63 61 74 69 6f 6e | 2e 0d 64 69 72 49 44 20 |fication|..dirID |
|000004f0| 20 20 20 20 20 20 20 20 | 20 20 69 6e 70 75 74 3a | | input:|
|00000500| 20 20 44 69 72 65 63 74 | 6f 72 79 20 49 44 2e 0d | Direct|ory ID..|
|00000510| 6e 61 6d 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |name | |
|00000520| 69 6e 70 75 74 3a 20 20 | 50 6f 69 6e 74 65 72 20 |input: |Pointer |
|00000530| 74 6f 20 6f 62 6a 65 63 | 74 20 6e 61 6d 65 2c 20 |to objec|t name, |
|00000540| 6f 72 20 6e 69 6c 20 77 | 68 65 6e 20 64 69 72 49 |or nil w|hen dirI|
|00000550| 44 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |D. | |
|00000560| 20 20 20 20 20 20 20 20 | 20 20 73 70 65 63 69 66 | | specif|
|00000570| 69 65 73 20 61 20 64 69 | 72 65 63 74 6f 72 79 20 |ies a di|rectory |
|00000580| 74 68 61 74 27 73 20 74 | 68 65 20 6f 62 6a 65 63 |that's t|he objec|
|00000590| 74 2e 0d 67 65 74 46 69 | 6c 65 73 20 20 20 20 20 |t..getFi|les |
|000005a0| 20 20 20 69 6e 70 75 74 | 3a 20 20 50 61 73 73 20 | input|: Pass |
|000005b0| 74 72 75 65 20 74 6f 20 | 68 61 76 65 20 66 69 6c |true to |have fil|
|000005c0| 65 73 20 61 64 64 65 64 | 20 74 6f 20 74 68 65 20 |es added| to the |
|000005d0| 69 74 65 6d 73 20 6c 69 | 73 74 2e 0d 67 65 74 44 |items li|st..getD|
|000005e0| 69 72 65 63 74 6f 72 69 | 65 73 20 20 69 6e 70 75 |irectori|es inpu|
|000005f0| 74 3a 20 20 50 61 73 73 | 20 74 72 75 65 20 74 6f |t: Pass| true to|
|00000600| 20 68 61 76 65 20 64 69 | 72 65 63 74 6f 72 69 65 | have di|rectorie|
|00000610| 73 20 61 64 64 65 64 20 | 74 6f 20 74 68 65 0d 20 |s added |to the. |
|00000620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000630| 20 20 20 20 20 20 20 69 | 74 65 6d 73 20 6c 69 73 | i|tems lis|
|00000640| 74 2e 0d 69 74 65 6d 73 | 20 20 20 20 20 20 20 20 |t..items| |
|00000650| 20 20 20 69 6e 70 75 74 | 3a 20 20 50 6f 69 6e 74 | input|: Point|
|00000660| 65 72 20 74 6f 20 61 72 | 72 61 79 20 6f 66 20 46 |er to ar|ray of F|
|00000670| 53 53 70 65 63 20 77 68 | 65 72 65 20 74 68 65 20 |SSpec wh|ere the |
|00000680| 69 74 65 6d 20 6c 69 73 | 74 0d 20 20 20 20 20 20 |item lis|t. |
|00000690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006a0| 20 20 69 73 20 72 65 74 | 75 72 6e 65 64 2e 0d 72 | is ret|urned..r|
|000006b0| 65 71 49 74 65 6d 43 6f | 75 6e 74 20 20 20 20 69 |eqItemCo|unt i|
|000006c0| 6e 70 75 74 3a 20 20 4d | 61 78 69 6d 75 6d 20 6e |nput: M|aximum n|
|000006d0| 75 6d 62 65 72 20 6f 66 | 20 69 74 65 6d 73 20 74 |umber of| items t|
|000006e0| 6f 20 72 65 74 75 72 6e | 20 28 74 68 65 20 6e 75 |o return| (the nu|
|000006f0| 6d 62 65 72 0d 20 20 20 | 20 20 20 20 20 20 20 20 |mber. | |
|00000700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6f 66 20 | | of |
|00000710| 65 6c 65 6d 65 6e 74 73 | 20 69 6e 20 74 68 65 20 |elements| in the |
|00000720| 69 74 65 6d 73 20 61 72 | 72 61 79 29 2e 0d 61 63 |items ar|ray)..ac|
|00000730| 74 49 74 65 6d 43 6f 75 | 6e 74 20 20 20 20 6f 75 |tItemCou|nt ou|
|00000740| 74 70 75 74 3a 20 54 68 | 65 20 6e 75 6d 62 65 72 |tput: Th|e number|
|00000750| 20 6f 66 20 69 74 65 6d | 73 20 61 63 74 75 61 6c | of item|s actual|
|00000760| 6c 79 20 72 65 74 75 72 | 6e 65 64 2e 0d 69 74 65 |ly retur|ned..ite|
|00000770| 6d 49 6e 64 65 78 20 20 | 20 20 20 20 20 69 6e 70 |mIndex | inp|
|00000780| 75 74 3a 20 20 54 68 65 | 20 63 75 72 72 65 6e 74 |ut: The| current|
|00000790| 20 69 74 65 6d 20 69 6e | 64 65 78 20 70 6f 73 69 | item in|dex posi|
|000007a0| 74 69 6f 6e 2e 20 53 65 | 74 20 74 6f 20 31 20 74 |tion. Se|t to 1 t|
|000007b0| 6f 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o. | |
|000007c0| 20 20 20 20 20 20 20 20 | 20 20 73 74 61 72 74 20 | | start |
|000007d0| 77 69 74 68 20 74 68 65 | 20 66 69 72 73 74 20 69 |with the| first i|
|000007e0| 74 65 6d 20 69 6e 20 74 | 68 65 20 64 69 72 65 63 |tem in t|he direc|
|000007f0| 74 6f 72 79 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |tory.. | |
|00000800| 20 20 20 20 20 20 6f 75 | 74 70 75 74 3a 20 54 68 | ou|tput: Th|
|00000810| 65 20 69 74 65 6d 20 69 | 6e 64 65 78 20 70 6f 73 |e item i|ndex pos|
|00000820| 69 74 69 6f 6e 20 74 6f | 20 67 65 74 20 74 68 65 |ition to| get the|
|00000830| 20 6e 65 78 74 20 69 74 | 65 6d 2e 0d 20 20 20 20 | next it|em.. |
|00000840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000850| 20 20 20 20 50 61 73 73 | 20 74 68 69 73 20 76 61 | Pass| this va|
|00000860| 6c 75 65 20 74 68 65 20 | 6e 65 78 74 20 74 69 6d |lue the |next tim|
|00000870| 65 20 79 6f 75 20 63 61 | 6c 6c 0d 20 20 20 20 20 |e you ca|ll. |
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000890| 20 20 20 47 65 74 44 69 | 72 49 74 65 6d 73 20 74 | GetDi|rItems t|
|000008a0| 6f 20 73 74 61 72 74 20 | 77 68 65 72 65 20 79 6f |o start |where yo|
|000008b0| 75 20 6c 65 66 74 20 6f | 66 66 2e 0d 0d 0d 00 16 |u left o|ff......|
|000008c0| 00 01 00 00 00 00 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|000008d0| 00 00 00 00 00 00 | |...... | |
+--------+-------------------------+-------------------------+--------+--------+